import { IToolTip } from "../../../../com/mui/manager/IToolTip";
import { ObjCreate } from "../common/ObjCreate";
import { ScaleBitmap } from "../../../../com/mui/display/ScaleBitmap";
//class TeamBuyRuleTip
    
    export  class TeamBuyRuleTip /* flash.display.Sprite */ implements IToolTip
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this.bg = ObjCreate.createBg(0, 0, 300, 320, this, "ToolTipBg");
            this._tfName = ObjCreate.createTextField("", 10, 10, 280, 20, this);
            this._tfName.autoSize = flash.text.TextFieldAutoSize.LEFT;
            var loc1;
            this._tfName.wordWrap = loc1 = true;
            this._tfName.multiline = loc1;
            return;
        }

        public set data(arg1)
        {
            if (typeof arg1 === "string") 
            {
                this._tfName.htmlText = arg1;
                this.bg.height = this._tfName.height + 20;
                if (this._tfName.textWidth < 300) 
                {
                    this.bg.width = this._tfName.textWidth + 20;
                }
            }
            return;
        }

        /* internal */ /* var */_tfName: Object /* flash.text.TextField */;

        /* internal */ /* var */bg: ScaleBitmap;
    }
